﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Edit.Master" AutoEventWireup="true" CodeBehind="EditPassword.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.UIFramework.EditPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtOldPassword.UniqueID%>:{required: true},
					<%= txtNewPassword.UniqueID%>:{required: true,maxlength: 16,minlength: 6},
					<%= txtConfirmNewPassword.UniqueID%>:{required: true,maxlength: 16,minlength: 6,equalTo:"#<%=txtNewPassword.ClientID %>"}					
                 },
                 messages:
                 {
					<%= txtOldPassword.UniqueID%>:{required: "请输入原密码"},
					<%= txtNewPassword.UniqueID%>:{required: "请输入新密码",maxlength: "新密码 最多只能输入16个字符",minlength: "新密码 不能少于6个字符"},
					<%= txtConfirmNewPassword.UniqueID%>:{required: "请输入确认新密码",maxlength: "确认新密码 最多只能输入16个字符",minlength: "确认新密码 不能少于6个字符",equalTo:"两次输入的密码不一致"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">修改用户密码</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1">
		<tr>
			<td style="width:80px;" class="title1">原密码</td>
			<td><asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
		</tr>
        <tr>
			<td style="width:80px;" class="title1">新密码</td>
			<td><asp:TextBox ID="txtNewPassword" runat="server"  TextMode="Password"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td style="width:80px;" class="title1">确认新密码</td>
			<td><asp:TextBox ID="txtConfirmNewPassword" runat="server"  TextMode="Password"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
		</tr>
        </table>
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>
